import React, { Component } from 'react'
import withPersistenceData from '../../../utils/withPersistenceData'
import withControl from '../../../utils/withControl'
import axios from 'axios'

class B extends Component {
  // this.props = {value: '', onChange: }

  render() {
    return <input {...this.props} />
  }

  componentDidMount() {
    // console.log(this.props.value, 'props----------B')
  }

  componentDidUpdate() {
    // axios.get('')
    console.log(this.props.value, 'update----------B')
  }
}

export default withControl(B)
